<template>
  <view class="invitation-success" v-cloak>
    <image src="https://fine-yahe.oss-cn-shanghai.aliyuncs.com/app/empty/success.png" mode="aspectFill" class="img"></image>
    <view class="h2">预约成功</view>
    <view class="success-button var-button" @click="handleToDetail()">查看详情</view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        id:''
      };
    },
    onLoad(ops) {
      this.id = ops.id
    },
    methods:{
      handleToDetail(){
        uni.navigateTo({
          url:`/doctorPackage/invitation-detail?id=${this.id}`
        })
      }
    }
  }
</script>

<style lang="less" scoped>
.invitation-success{
  padding: 24rpx;
  min-height: 100vh;
  box-sizing: border-box;
  background: var(--page-bg);
  .img{
    width: 174rpx;
    height: 174rpx;
    margin: 150rpx auto 0;
    display: block;
  }
  .h2{
    font-size: 32rpx;
    font-weight: bold;
    margin: 80rpx 0;
    text-align: center;
  }
  
  .success-button{
    margin-top: 16rpx;
  }
  
}
</style>
